package org.flowers.unbeaten.controller;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * <p>
 * 视图 前端控制器
 * </p>
 *
 * @author RyanWang
 * @since 2021-08-13
 */
@Api(tags = "代码生成-代码生成视图管理")
@Controller
@RequestMapping("/view/generator")
public class ViewController {

    @GetMapping("/list")
    @ApiOperation(value = "获取代码生成数据表格列表")
    public String index() {
        return "/view/generator/generator-list";
    }

    @GetMapping("/add")
    @ApiOperation(value = "获取代码生成页面")
    public String add() {
        return "/view/generator/generator-add";
    }

}
